<template>
  <div>
    <!-- 组件的条件渲染 -->
    <loading v-if="!title" />
    <h3 v-else>{{ title }}</h3>
  </div>
</template>

<script>
export default {
  data() {
    return {
      title: null,
    }
  },
  mounted() {
    setTimeout(() => {
      this.title = 'comingsoon'
    }, 3000)
  },
}
</script>

<style lang="scss" scoped>
</style>